package com.example.shopping.service;

import com.example.shopping.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface UserService {
    public List<User> findAll();
    public User findByUid(Integer uid);



    void deleteUserByUid(int uid);


    void saveUser(User user);

    User findById(Integer uid);

    void updateUser(User user);

    Page<User> findAllUser(Pageable pageable);

    Page<User> queryUsers(String username, String mailingaddress, String ssex, int pageNo, int pageSize);

    User authenticate(int uid, String password);
}
